package com.senter.data.dbflow.model;

import com.raizlabs.android.dbflow.annotation.ForeignKey;
import com.raizlabs.android.dbflow.annotation.PrimaryKey;
import com.raizlabs.android.dbflow.annotation.Table;
import com.raizlabs.android.dbflow.structure.BaseModel;
import com.senter.data.dbflow.db.DemoDataBase;

@Table(name = "person_role",database = DemoDataBase.class)
public class PersonRole extends BaseModel {

    @PrimaryKey(autoincrement = true)
    private int id;

    @ForeignKey(saveForeignKeyModel = true)
    private Person person;

    @ForeignKey(saveForeignKeyModel = true)
    private Role role;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Person getPerson() {
        return person;
    }

    public void setPerson(Person person) {
        this.person = person;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }
}
